package com.linefly.online_car.Custom;

import android.content.Context;

/**
 * Created by liheng on 2018/12/18.
 */

public class MyLoading {
    private static Custom_Dialog_Loading custom_dialog_loading;
    public static void show(Context context){
        if(custom_dialog_loading != null) {
            custom_dialog_loading = null;
        }
        custom_dialog_loading = new Custom_Dialog_Loading(context);
        custom_dialog_loading.show();
    }

    public static void cancel(){
        if(custom_dialog_loading!=null){
            custom_dialog_loading.cancel();
        }
    }
}
